Redefined API Names
Some names defined in the Macintosh application programming interfaces conflict with identical names in the Windows API. In these cases, the QTML header file
QTMLMapNames.h
avoids these conflicts by redefining the affected names with the prefix
Mac
added. In Table 5-1, names listed in the first column refer to the original Macintosh function or data structure name; the second column gives the redefined or newly mapped names.
Table 5-1
Redefined API names
Original Macintosh API name
|
Mapped name
|
AnimatePalette
|
MacAnimatePalette
|
AppendMenu
|
MacAppendMenu
|
CloseDriver
|
MacCloseDriver
|
CloseWindow
|
MacCloseWindow
|
CompareString
|
MacCompareString
|
CopyRgn
|
MacCopyRgn
|
DeleteMenu
|
MacDeleteMenu
|
DrawMenuBar
|
MacDrawMenuBar
|
DrawText
|
MacDrawText
|
EqualRect
|
MacEqualRect
|
EqualRgn
|
MacEqualRgn
|
FillRect
|
MacFillRect
|
FillRgn
|
MacFillRgn
|
FindWindow
|
MacFindWindow
|
FlushInstructionCache
|
MacFlushInstructionCache
|
FrameRect
|
MacFrameRect
|
FrameRgn
|
MacFrameRgn
|
GetClassInfo
|
MacGetClassInfo
|
GetCurrentThread
|
MacGetCurrentThread
|
GetCursor
|
MacGetCursor
|
GetDoubleClickTime
|
MacGetDoubleClickTime
|
GetFileSize
|
MacGetFileSize
|
GetItem
|
MacGetItem
|
GetMenu
|
MacGetMenu
|
GetNextWindow
|
MacGetNextWindow
|
GetParent
|
MacGetParent
|
GetPath
|
MacGetPath
|
GetPixel
|
MacGetPixel
|
InsertMenu
|
MacInsertMenu
|
InsertMenuItem
|
MacInsertMenuItem
|
InsetRect
|
MacInsetRect
|
InvertRect
|
MacInvertRect
|
InvertRgn
|
MacInvertRgn
|
IsWindowVisible
|
MacIsWindowVisible
|
LineTo
|
MacLineTo
|
LoadResource
|
MacLoadResource
|
MoveWindow
|
MacMoveWindow
|
OffsetRect
|
MacOffsetRect
|
OffsetRgn
|
MacOffsetRgn
|
OpenDriver
|
MacOpenDriver
|
PaintRgn
|
MacPaintRgn
|
Polygon
|
MacPolygon
|
PtInRect
|
MacPtInRect
|
Region
|
MacRegion
|
ReplaceText
|
MacReplaceText
|
ResizePalette
|
MacResizePalette
|
SendMessage
|
MacSendMessage
|
SetCursor
|
MacSetCursor
|
SetItem
|
MacSetItem
|
SetPort
|
MacSetPort
|
SetRect
|
MacSetRect
|
SetRectRgn
|
MacSetRectRgn
|
ShowCursor
|
MacShowCursor
|
ShowWindow
|
MacShowWindow
|
StartSound
|
MacStartSound
|
StopSound
|
MacStopSound
|
TokenType
|
MacTokenType
|
UnionRect
|
MacUnionRect
|
UnionRgn
|
MacUnionRgn
|
XorRgn
|
MacXorRgn
|
© 1998 Apple Computer, Inc.| Previous | Chapter Contents | Chapter Top | Roadmap | Next |